package com.egreen.system.ex.Exception;

import com.egreen.common.Result;
import com.egreen.system.ex.ServiceException;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @Author : ArturiaMu KMUST-Stu
 * @Date : 2022/6/6 9:28
 * @Params : @param null
 * @Exception :
 * @Return :
 * @Description ：
 */
@RestControllerAdvice
public class ExceptionConfigController {

    @ExceptionHandler(ServiceException.class)
    public Result serviceExceptionHandler(ServiceException e) {

        return null;

//        return new Result(null, States.ERR_DELETE.getStates(), States.ERR_DELETE.getDescription());

    }

}
